package ynu.edu.controller;

import org.springframework.web.bind.annotation.*;
import ynu.edu.entity.User;

@RestController
@RequestMapping("/user")
public class UserController {
    @GetMapping("getUserById/{userId}")
    public User getUserById(@PathVariable("userId") Integer userId) {
        User user = new User();
        user.setUserId(userId);
        user.setUserName("provider11000");
        user.setPassword("123456");
        return user;
    }

}
